﻿<UserControl x:Class="SettingsModuleAddin.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:addin="clr-namespace:Acceron.University.Core.Addins;assembly=Acceron.University.Core"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <TabControl Name="settingsTabControl">
            <TabItem Header="Main">
                <Grid>
                    <TextBox Height="23" Margin="93,6,6,0" Name="textBox1" VerticalAlignment="Top" Width="190" />
                    <Label Content="DB Connection" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label1" VerticalAlignment="Top" />
                    <Label x:Uid="languageLbl" Localization.Comments="Language choise" Content="Language" Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="label2" VerticalAlignment="Top" />
                    <ComboBox Height="23" Margin="93,45,6,0" Name="comboBox1" VerticalAlignment="Top" Width="190">
                        <ComboBoxItem>
                            English
                        </ComboBoxItem>
                        <ComboBoxItem>
                            Русский
                        </ComboBoxItem>
                    </ComboBox>
                </Grid>
            </TabItem>
            <TabItem Header="Modules" Name="moduleTab">
                <Grid>
                    <GroupBox Header="Modules" Margin="0,6,6,42" Name="groupBox1">
                        <Grid>
                            <ListBox Name="listBoxModules">
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <Image Height="50" Width="50" Source="{Binding Source}" />
                                            <StackPanel Orientation="Vertical">
                                                <Label Content="{Binding Name}" FontWeight="Bold" />
                                                <Label Content="{Binding Description}" FontStyle="Italic" />
                                            </StackPanel>
                                            <Button Content="Details" Margin="10,10,0,0" Height="25" Width="80" Tag="{Binding Name}" Click="Button_Click" HorizontalAlignment="Right" />
                                        </StackPanel>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                        </Grid>
                    </GroupBox>
                    <Button Content="Add module" Height="30" HorizontalAlignment="Right" Margin="0,0,6,7" Name="button1" VerticalAlignment="Bottom" Width="75" Click="button1_Click" />
                    <Button Content="Search in web" HorizontalAlignment="Right" Margin="0,0,87,6" Name="button2" Width="111" Click="button2_Click" Height="31" VerticalAlignment="Bottom">
                        <Button.ContentTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Image Source="/SettingsModuleAddin;component/Images/_previmg5.png" />
                                    <Label Content="{Binding}"/>
                                </StackPanel>
                            </DataTemplate>
                        </Button.ContentTemplate>
                    </Button>
                </Grid>
            </TabItem>
            <TabItem Header="GA Parametres" >
                <Grid>
                    <Label Content="Размер популяции" Margin="0,2,0,0" HorizontalAlignment="Left" Width="116" Height="32" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="258,2,12,0" Name="popSizeTxtBox" VerticalAlignment="Top" AcceptsTab="True" />
                    <Label Content="Число элитных особей" HorizontalAlignment="Left" Margin="0,31,0,0" Width="137" Height="23" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,31,12,0" Name="eliteTxtBox" VerticalAlignment="Top" />
                    <Label Content="Количество точек кроссовера" HorizontalAlignment="Left" Margin="0,60,0,0" Width="189" Height="33" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,60,12,0" Name="crossPointsTxtBox" VerticalAlignment="Top" />
                    <Label Content="Вероятность появления кроссовера" HorizontalAlignment="Left" Margin="0,91,0,0" Width="217" Height="34" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,91,12,0" Name="crProbabilityTxtBox" VerticalAlignment="Top" />
                    <Label Content="Вероятность появления мутации" HorizontalAlignment="Left" Margin="0,122,0,0" Width="217" Height="34" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,122,12,0" Name="mutProbabilityTxtBox" VerticalAlignment="Top" />
                    <Label Content="Количество учебных дней" HorizontalAlignment="Left" Margin="0,151,0,0" Width="217" Height="34" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,151,12,0" Name="workDayNumberTxtBox" VerticalAlignment="Top" />
                    <Label Content="Макс. количество пар в день" HorizontalAlignment="Left" Margin="0,182,0,0" Width="198" Height="32" VerticalAlignment="Top" />
                    <TextBox AcceptsTab="True" Height="23" Margin="258,182,12,0" Name="maxDayCoursesTxtBox" VerticalAlignment="Top" />
                    <DataGrid AutoGenerateColumns="False" Margin="0,243,0,28" Name="dataGrid1">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Наимнование" Binding="{Binding Name}"/>
                            <DataGridTextColumn Header="Штраф" Binding="{Binding Score}"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <Label Content="Штрафы:" Height="28" HorizontalAlignment="Left" Margin="0,220,0,0" Name="label9" VerticalAlignment="Top" />
                    <Button Click="button10_Click" Content="Сохранить" Height="23" HorizontalAlignment="Right" Margin="0,0,25,0" Name="button10" VerticalAlignment="Bottom" Width="75" />
                    <Button Content="Отмена" Height="23" HorizontalAlignment="Right" Margin="0,0,-56,0" Name="button11" VerticalAlignment="Bottom" Width="75" />
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
